<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,viewport-fit=cover,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <title>个人中心</title>
    <script src="js/rem.js"></script>
    <link rel="stylesheet" href="css/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.min.css">
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/user.css">
    <script>(function () { var _53code = document.createElement("script"); _53code.src = "https://tb.53kf.com/code/code/96d8f960b261e49515450f8953b044bc5/1"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(_53code, s); })();</script>
</head>

<body>
    <div class="pub-container user-consultation">
        <div class="hxl-pay-suc"></div>
        <div class="order-info">
            <div class="top"></div>
            <div class="user-box box3">
                <div class="inner plr15" id="paySuccess">
                </div>
            </div>
        </div>
        <a href="./ot-curriculum-index.html"><div class="plr26 mt20 mb15"><input class="pub-submit-btn" type="button" value="去学习"></div></a>
        <div class="pay-tip2 plr26">
            
        </div>
    </div>
    <script src="js/jquery-3.6.0.min.js"></script>
    <script src="js/jquery-weui.min.js"></script>
    <script src="js/md5.js"></script>
    <script src="js/public.js"></script>
    <script>
        var orderNo = getQueryString('orderNo') || getQueryString('out_trade_no');
        var payTypes = {
            1: '微信支付',
            2: '支付宝支付',
            3: '在线支付'
        }

        gethttp('/ld/order', {
            hasToken: true,
            data: {
                type: 'm',
                user: getCookie('userId'),
                id: getQueryString('orderNo')
            },
            success: function (res) {
                let order = res.data.order
                let course = res.data.course
                $('#paySuccess').html(`<div class="box3_p2">恭喜您已成功获得此课程的听课权益</div>
                            <div class="box3">
                                <div class="box3_img"><img src="${course.coverUrlUi}" alt=""></div>
                                <div class="box3_text">
                                    <p class="box3_p1">${course.doctorName}专家 ${order.depart2Name} ${order.courseName}</p>
                                </div>
                            </div>
                            <div class="box5">
                                <p class="box5_p1">已支付</p>
                                <p class="box5_p2"><span>${order.doctorName}${order.priceUi}</span> 元</p>
                            </div>
                            <div class="sq-info">
                                <p><span class="txt1">订单号 </span><span>${order.code}</span></p>
                                <p><span class="txt1">下单时间 </span><span>${order.createdAtUi}</span></p>
                                <p><span class="txt1">支付方式 </span><span>微信支付</span></p>
                            </div>
                            <p class="bottom-tip">遇到支付问题请联系客服，客服电话：400-990-0686</p>
                            <div class="custom-box">
                                <a class="custom-btn" href="' + customUrl + '">咨询客服</a>
                            </div>`)
                $('.pay-tip2').html(`<p>听课权益：</p>
                                    <p>1.课程名称 ${order.courseName}；</p>
                                    <p>2.有效期至 2022年03-16；</p>
                                    <p>3.本产品为虚拟产品，一经支付，概不退款</p>`)
                                    }
        })
    </script>
</body>

</html>